package com.xbongbong.saas.constant;

/**
 * @author 章华隽
 * @mail nefeed@163.com
 * @time 2017-10-26 22:19
 */
public class UserConstant {

    /**
     * 加密号码的占位符
     */
    public static final String SECRET_PHONE_NUM_PLACEHOLDER = "*";
    /**
     * 座机号码的正确长度为8位
     */
    public static final int PHONE_NUM_LENGTH = 8;
    /**
     * 手机号码的正确长度为11位
     */
    public static final int MOBILE_PHONE_NUM_COMMON_LENGTH = 11;
    /**
     * 手机号码的正确开始数字应该是"1"
     */
    public static final String MOBILE_PHONE_NUM_COMMON_START_WITH = "1";
    /**
     * 带国际区号的手机号码的正确长度为13位
     */
    public static final int MOBILE_PHONE_NUM_NATIONAL_LENGTH = 13;
    /**
     * 国内区号手机号码的正确开始数字应该是"86"
     */
    public static final String MOBILE_PHONE_NUM_CN_START_WITH = "86";
    /**
     * 手机验证码有效时间
     * 600s = 10min
     */
    public static final Integer MOBILE_CODE_EFFECTIVE_TIME = 600;
    /**
     * 验证码发送间隔
     * 60s
     */
    public static final Integer MOBILE_CODE_RESEND_DURATION = 60;
    /**
     * 验证码发送后存入redis的key
     */
    public static final String REDIS_VALUE_MOBILE_CODE_SEND = "send";
}
